package cate.common.table.activity.tendrawsoptions.row;

import cate.common.table.EExcelNoteField;
import cate.common.table.EExcelRowClass;
import cate.common.table.ERow;
import cate.common.table.item.hero.StarGroupList;
import cp.solution.util.str.Str;

import java.util.List;

@EExcelRowClass
public class TenDrawsOptionsRow extends ERow {
    @EExcelNoteField(fieldName = "天数", defaultValue = "-1")
    public int day;
    @EExcelNoteField(fieldName = "关卡数", defaultValue = "-1")
    public int combatId;
    @EExcelNoteField(fieldName = "召唤星组")
    public String groups;
    @EExcelNoteField(fieldName = "必出英雄")
    public String heroIdStr;

    public List<Integer> heroIdList;

    public StarGroupList config = new StarGroupList();
    @Override
    public void decode() {
        super.decode();
        heroIdList = Str.str2IntList(heroIdStr, "#");
        config.parse(groups);
    }
}
